@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="processForm">
            <input type="hidden" id="id" value="${item.id}">
            <input type="hidden" id="taskId" value="${taskId}">
            <input type="hidden" id="taskUser" value="${taskUser}">
            <input type="hidden" id="locationValue" value="${item.location}">
            <input type="hidden" id="taskDefinitionKey" value="${taskDefinitionKey}">
            <div class="row">
                <div class="col-sm-6 b-r">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">地区</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" value="${locationName}" readonly="readonly">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">申请日期</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="applytime" name="applytime" value="${item.applytime}" readonly="readonly">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <#input id="bank" name="开户行" underline="true" value="${item.bank}" readonly="readonly"/>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">截止日期</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="deadline" name="deadline" value="${item.deadline}" readonly="readonly">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <#input id="price" name="金额" underline="true" value="${item.price}" readonly="readonly"/>
                </div>
                <div class="col-sm-6">
                    <#input name="部门" id="departs" readonly="readonly" hidden="deptid"
                    clickFun="CostPaymentApplyInfoDlg.showDeptSelectTree(); return false;"
                    style="background-color: #ffffff !important;" underline="true" value="${deptname}" hiddenValue="${item.deptid}"/>
                    <#input id="receivingunit" name="收款单位(员工姓名)" underline="true" value="${item.receivingunit}" readonly="readonly"/>
                    <#input id="account" name="账号" underline="true" value="${item.account}" readonly="readonly"/>
                    <#input id="reason" name="申请事由" underline="true" value="${item.reason}" readonly="readonly"/>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6 b-r">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">部门负责人(${leaderapprove})审批意见</label>
                        <div class="col-sm-9">
                            @if(taskDefinitionKey == "leader_approve"){
                            <input class="form-control" type="text" id="leadernote" name="leadernote"/>
                            @} else {
                            <input class="form-control" readonly="readonly" type="text" id="leadernote" value="${item.leadernote}"/>
                            @}
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">副总经理(${deputyapprove})审批意见</label>
                        <div class="col-sm-9">
                            @if(taskDefinitionKey == "deputyManager_approve"){
                            <input class="form-control" type="text" id="deputynote" name="deputynote"/>
                            @} else {
                            <input class="form-control" readonly="readonly" type="text" id="deputynote"  value="${item.deputynote}"/>
                            @}
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">财务(${casherapprove})审批意见</label>
                        <div class="col-sm-9">
                            @if(taskDefinitionKey == "finance_approve"){
                            <input class="form-control" type="text" id="cashernote" name="cashernote"/>
                            @} else {
                            <input class="form-control" readonly="readonly" type="text" id="cashernote"  value="${item.cashernote}"/>
                            @}
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">总经理(${managerapprove})审批意见</label>
                        <div class="col-sm-9">
                            @if(taskDefinitionKey == "manager_approve"){
                            <input class="form-control" type="text" id="managernote" name="managernote"/>
                            @} else {
                            <input class="form-control" readonly="readonly" type="text" id="managernote"  value="${item.managernote}"/>
                            @}
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                </div>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="同意" id="ensure" icon="fa-check" clickFun="ProcessInfoDlg.pass()"/>
                    <#button btnCss="danger" name="驳回" id="ensure" icon="fa-eraser" clickFun="ProcessInfoDlg.unPass()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ProcessInfoDlg.goBack()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/biz/apply/cost/process/process_info.js"></script>
@}
